<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <h:body>
        <ui:composition template="template.xhtml">
            <ui:define name="tituloJanela">
                #{msgs.logo}
            </ui:define>

            <ui:define name="conteudo">

                <div id="content">

                    <h2>#{msgs.adduser}</h2>
                    <h:form>
                        <h:panelGrid columns="3" cellspacing="5">
                            #{msgs.gamename}: 
                            <h:inputText id="nome" value="#{jogoBean.jogo.nome}"/><h:outputText />    
                            
                            #{msgs.gametype}:
                            <p:selectOneMenu id="tipo" value="#{jogoBean.jogo.tipo}" style="width: 180px;">
                                <f:selectItem id="tipo0" itemLabel="#{msgs.selecttype}" itemValue=""/>
                                <f:selectItem id="tipo1" itemLabel="#{msgs.racing}" itemValue="Corrida" />
                                <f:selectItem id="tipo3" itemLabel="#{msgs.fps}" itemValue="FPS" />                                                                
                                <f:selectItem id="tipo6" itemLabel="#{msgs.tps}" itemValue="TPS" />                                                                
                            </p:selectOneMenu><h:outputText />  
                            
                            #{msgs.platform}:
                            <p:selectOneMenu id="plataforma" value="#{jogoBean.jogo.plataforma}" style="width: 180px;">
                                <f:selectItem id="plata0" itemLabel="#{msgs.selectplatform}" itemValue=""/>
                                <f:selectItem id="plata1" itemLabel="PC" itemValue="PC" />                                                                                              
                                <f:selectItem id="plata2" itemLabel="Play" itemValue="Play" />
                                <f:selectItem id="plata3" itemLabel="Xbox" itemValue="Xbox" />
                                <f:selectItem id="plata4" itemLabel="Wii" itemValue="Wi" />
                            </p:selectOneMenu><h:outputText />
                            
                            #{msgs.realease}:
                            <p:selectOneMenu id="lancamento" value="#{jogoBean.jogo.lancamento}" style="width: 180px;">
                                <f:selectItem id="lanca0" itemLabel="#{msgs.realease}?" itemValue=""/>
                                <f:selectItem id="lanca1" itemLabel="#{msgs.yes}" itemValue="Sim" />                                                                                              
                                <f:selectItem id="lanca2" itemLabel="#{msgs.no}" itemValue="Nao" />                                                                                              
                            </p:selectOneMenu><h:outputText /> 
                            
                            #{msgs.cover}:
                            <h:inputText id="capa" value="#{jogoBean.jogo.capa}"/><h:outputText />                                                         
                            
                            #{msgs.stars}: 
                            <h:inputText id="stars" value="#{jogoBean.jogo.stars}"/><h:outputText />                                                         
                            
                            #{msgs.price}: 
                            <h:inputText id="preco" value="#{jogoBean.jogo.preco}"/><h:outputText /> 
                            
                            #{msgs.description}: 
                            <h:inputTextarea id="descricao" value="#{jogoBean.jogo.descricao}"/><h:outputText/>
                            
                            <h:commandButton value="#{msgs.submit}" action="#{jogoBean.cadastraJogo()}"/>
                            </h:panelGrid>  
                    </h:form>
                    <div style="clear: both;"></div>
                </div>

            </ui:define>

        </ui:composition>

    </h:body>
</html>


                            
                           